﻿define([],
function () {
    'use strict';

    return {

        // Compares two objects for equality
        isEquivalent: function (o1, o2) {

            throw 'Not implemented';
        },


        toCamelCase: function (s) {
            if (s) {
                return s[0].toLowerCase() + s.substring(1);
            }

            return s;
        },

        toPascalCase: function (s) {
            if (s) {
                return s[0].toUpperCase() + s.substring(1);
            }

            return s;
        },

        // Tests whether the string s contains the word w
        contains: function (s, w, sep) {

            if (!s) {

                return false;
            }

            var sep = sep || ' ',
                words = s.split(sep);

            for (var i = 0; i < words.length; ++i) {

                if (words[i] === w) {

                    return true;
                }
            }

            return false;
        }
             
    };
});